package com.world.cat.model.sys;

import com.world.common.generate.auto.Action;
import com.world.common.generate.auto.QField;
import com.world.common.generate.auto.QFieldQueryType;
import com.world.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by gang on 2016/12/20.
 * 用户地区关系
 */
@Entity
@Table(name = "sys_user_area")
public class UserArea extends BaseEntity {
    @QField(name = "userId", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "user_id", nullable = false, length = 50)
    private String userId;
    @QField(name = "areaId", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "area_id", nullable = false, length = 50)
    private String areaId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }
}
